package com.hk.dao;

import com.hk.model.ProductMenu;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: KangWang
 * Date: 2021/5/24 10:59
 * State：产品菜单数据持久层
 */
public class ProductMenuDao {

    //    根据parentId获取产品菜单
    public List<ProductMenu> findByParentId() {
        List<ProductMenu> productMenus = new ArrayList<>(20);
        productMenus.add(new ProductMenu(1,"软件","/index",0));
        productMenus.add(new ProductMenu(2,"数码","/index",0));
        productMenus.add(new ProductMenu(3,"通讯","/index",0));
        productMenus.add(new ProductMenu(4,"网络设备","/index",0));
        productMenus.add(new ProductMenu(5,"办公软件","/index",0));
        productMenus.add(new ProductMenu(6,"电脑设备","/index",0));
        productMenus.add(new ProductMenu(7,"企业用户","/index",1));
        productMenus.add(new ProductMenu(8,"集团用户","/index",1));
        productMenus.add(new ProductMenu(9,"数字数码","/index",2));
        productMenus.add(new ProductMenu(10,"数字影音","/index",2));
        productMenus.add(new ProductMenu(11,"手机设备","/index",3));
        productMenus.add(new ProductMenu(12,"通讯设备","/index",3));
        productMenus.add(new ProductMenu(13,"大型企业","/index",4));
        productMenus.add(new ProductMenu(14,"小型企业","/index",4));
        productMenus.add(new ProductMenu(15,"一体机","/index",5));
        productMenus.add(new ProductMenu(16,"分体机","/index",5));
        productMenus.add(new ProductMenu(17,"主板内存","/index",6));
        productMenus.add(new ProductMenu(18,"电源散热","/index",6));
        return productMenus;
    }

}
